﻿using PD;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public sealed class CrashMa : Singleton<CrashMa>
{
    private CrashMa() { }
    
    public void Init()
    {
        //EventMa.I.register(EGameEvent.ET_CrashBoth, OnCrash);
    }

    public void Realse()
    {
        //EventMa.I.unregister(EGameEvent.ET_CrashBoth, OnCrash);
    }
    
    //碰撞事件
    public void OnCrash(params object[] o)
    {
        ECrashType t1 = (ECrashType)o[0];
        ECrashType t2 = (ECrashType)o[1];
        GameObject go1 = (GameObject)o[2];
        GameObject go2 = (GameObject)o[3];
        EPlayerType playerType = (EPlayerType)o[4];
                
    }
    
    public static void GetCrashParameter(ECrashType e1, ECrashType e2, GameObject g1, GameObject g2)
    {

    }

}

public class CrashData
{
    public ECrashType[] CrashTypeAry { get; set; }
    public GameObject[] GoAry { get; set; }
}
